﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Oracle.DataAccess.Client;
using System.Data;

namespace DAL
{
    public class ConnectDB
    {
        public static OracleConnection connection = new OracleConnection();
        public static void connect()
        {
            try
            {
                if (connection.State == ConnectionState.Closed)
                {
                    connection = new OracleConnection(DAL.CONST.strConnectionString);
                    connection.Open();
                }
            }
            catch (Exception ex)
            {

            }
        }
    }
}
